/******************************************************************************

 @file sensor_data_generator.h

 @brief Sensor Data Generator Module Header for TI 15.4-Stack Sensor Example

 *****************************************************************************/

#ifndef SENSOR_DATA_GENERATOR_H
#define SENSOR_DATA_GENERATOR_H

#include <stdint.h>
#include "smsgs.h"

#ifdef __cplusplus
extern "C"
{
#endif

/******************************************************************************
 Function Prototypes
 *****************************************************************************/

/*!
 * @brief       Generate vibration sensor data.
 */
extern void SensorDataGenerator_generateSensorData(Smsgs_vibrateSensorField_t *data);

/*!
 * @brief       Generate temperature and battery data.
 */
//extern void SensorDataGenerator_generateTemplateBatData(Smsgs_vibrateTemplateBat_t *data);

/*!
 * @brief       Generate sampling configuration data.
 */
extern void SensorDataGenerator_generateSampleConfigData(Smsgs_vibrateSampleConfig_t *data);

/*!
 * @brief       Generate channel configuration data.
 */
extern void SensorDataGenerator_generateVibrateConfigData(Smsgs_vibrateChannelConfig_t *data, uint8_t channelIndex);

/*!
 * @brief       Generate temperature compensation configuration data.
 */
extern void SensorDataGenerator_generateVibrateTemplateConfigData(Smsgs_vibrateChannelTempConfig_t *data, uint8_t channelIndex);

/*!
 * @brief       Generate continuous send raw data.
 */
extern void SensorDataGenerator_generateContinuousSendRawData(uint16_t packetIndex, uint8_t *data);

/*!
 * @brief       Generate ack data complete.
 */
extern void SensorDataGenerator_generateAckDataComplete(uint16_t packetIndex, uint16_t maxPacketIndex ,uint8_t *data);

#ifdef __cplusplus
}
#endif

#endif /* SENSOR_DATA_GENERATOR_H */
